/* 播客应用通用样式 */

/* 基础页面布局 */
.app-container {
  max-width: 100%;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: white;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 80px; /* 为底部导航留出空间 */
  position: relative;
}

/* iOS 状态栏 */
.ios-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 16px 0;
  height: 44px;
  background-color: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 50;
}

.status-left {
  display: flex;
  align-items: center;
}

.status-time {
  font-weight: 600;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 导航标题 */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  height: 48px;
  background-color: white;
  position: sticky;
  top: 44px;
  z-index: 40;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-title {
  font-size: 16px;
  font-weight: 600;
}

/* 底部导航栏 */
.tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  background-color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 20px);
  z-index: 50;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 60px;
  color: #6b7280;
  transition: color 0.2s;
  cursor: pointer;
}

.tab-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.tab-text {
  font-size: 10px;
  text-align: center;
  letter-spacing: -0.2px;
}

.active-tab {
  color: #4f46e5;
}

/* 播客卡片 */
.podcast-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.podcast-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.podcast-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.podcast-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #4f46e5;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 播放控制器 */
.mini-player {
  display: flex;
  align-items: center;
  background-color: #f9fafb;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  margin-bottom: 0;
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 40;
  height: 64px;
  transition: transform 0.3s ease;
}

.mini-player.hidden {
  transform: translateY(100%);
}

.player-artwork {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  margin-right: 12px;
}

.player-info {
  flex: 1;
  overflow: hidden;
}

.player-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-author {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.player-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* 无障碍支持 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 触觉反馈容器 */
.click-target {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* 圆形按钮样式增强 */
button.rounded-full {
  position: relative;
  overflow: hidden;
}

/* 波纹效果增强 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  z-index: 0;
}

/* 为带背景色的按钮使用白色波纹 */
button.bg-indigo-600 .ripple,
button.bg-gray-800 .ripple,
button.bg-black .ripple,
.bg-indigo-600 .ripple {
  background-color: rgba(255, 255, 255, 0.35);
}

/* 为浅色按钮使用深色波纹 */
button.bg-gray-100 .ripple,
button.bg-white .ripple,
button.bg-transparent .ripple {
  background-color: rgba(0, 0, 0, 0.15);
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* 加载动画 */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
} 
